<template>
  <div>
    <div class="title">
      <div class="hot"><img src="../../assets/images/hot.png" alt="" /></div>
      <div class="more"><a href="##">查看更多></a></div>
    </div>
    <ul class="list">
      <li v-for="ele in list" :key="ele.id">
        <van-row>
          <van-col span="3">
            <span class="red">最新</span>
          </van-col>
          <van-col span="19">{{ ele.title }}</van-col>
          <van-col span="2"><van-icon name="arrow" color="#999" /></van-col>
        </van-row>
      </li>
    </ul>
    <div class="nav">
      <van-row>
        <van-col span="6">
         <div class='nav-img'>
            <img src="../../assets/images/1.png" alt="">
         </div>
         <p>问医生</p>
        </van-col>
        <van-col span="6">
             <div class='nav-img'>
            <img src="../../assets/images/2.png" alt="">
         </div>
         <p>新人义诊</p>
        </van-col>
        <van-col span="6">
             <div class='nav-img'>
            <img src="../../assets/images/3.png" alt="">
         </div>
         <p>防疫物资</p>
        </van-col>
        <van-col span="6">
              <div class='nav-img'>
            <img src="../../assets/images/4.png" alt="">
         </div>
         <p>出行政策</p>
        </van-col>
      </van-row>
    </div>
  </div>
</template>

<script>
export default {
  // props:['list'],
  props: {
    list: Array,
  },
};
</script>

<style lang="less" scoped>
.title {
  margin-top: -.08rem;
  background-color: #fff;
  padding: 0.2rem 0.32rem 0;
  height: 0.88rem;
  .hot {
    position: relative;
    float: left;
    &::before {
      content: "";
      width: 0.06rem;
      height: 0.32rem;
      background: #4169e2;
      position: absolute;
      top: 0.08rem;
    }
  }
  .hot > img {
    width: 1.4rem;
    height: 0.48rem;
    margin-left: 0.24rem;
  }
  .more {
    float: right;
  }
}
.list {
  background-color: #fff;
  padding: 0 0.2rem 0.2rem;
  border-bottom: 1px solid #eee;
  .red {
    padding: 0.04rem;
    background-color: #ff5555;
    color: #fff;
    border-radius: 0.04rem;
    margin-left: 0.08rem;
    font-size: 0.24rem;
  }
  li {
    margin-bottom: 0.3rem;
    line-height: 0.4rem;
    color: #1a1a1a;
  }
}
.nav {
  background-color: #fff;
  height: 1.149rem;
  padding: 0.32rem 0;
  text-align: center;
  .nav-img>img{
    width: .8rem;
    height: .8rem;
  }
  p{
    font-size: .26rem;
  }
}
</style>>

